package org.xtremeobjects.domain.model.ddd;

import java.util.Collection;
import java.util.List;

public interface Repository {

	public List<?> allInstances();
	public Object findObjectById(String anId);

	public void addObject( Object anObject );
	public void addObject( Collection<?> anObjectCollection );
	public void removeObject( Object anObject );
	public void removeObject( Collection<?> anObjectCollection );
	public void updateObject(Object anObject);
	public void updateObject( Collection<?> anObjectCollection );
	public boolean canRemove();
	public boolean canAdd();
}
